const development_env = require('./dev');
const test_env = require('./test');
const prod_env = require('./prod');

//console.log(process.argv);
console.log(">>>>>>环境变量参数"+JSON.stringify(process.argv));
console.log(">>>>>>环境变量env:"+process.env.NODE_ENV);
console.log(">>>>>>环境变量process.argv[2]:"+process.argv[2]);
//global.process.env.dev1

//根据不同的NODE_ENV，输出不同的配置对象，默认输出development的配置对象
module.exports = {
    dev: development_env,
    test: test_env,
    prod: prod_env
}[process.env.NODE_ENV || process.argv[2] || 'dev'];
